@echo off
echo ------------------------------------------------------------
SET LIB=%CD%\..\lib

SET JAVA_FILES_PATH=%CD%\lucene

setLocal EnableDelayedExpansion
 set CLASSPATH="F:\__WORK__\TOOLs\Java\glassfish3\glassfish\lib\javaee.jar
 for /R %LIB% %%a in (*.jar) do (
   set CLASSPATH=!CLASSPATH!;%%a
 )
 set CLASSPATH=!CLASSPATH!"

echo LIB = %LIB%
echo ------------------------------------------------------------
echo CLASSPATH = %CLASSPATH%
echo ------------------------------------------------------------
REM pause

SET FILES_TO_COMPILE=lucene/*.java
if not "%1" == "" (
	SET FILES_TO_COMPILE=%1
)

javac -classpath %CLASSPATH% -s %JAVA_FILES_PATH% %FILES_TO_COMPILE%


